package dao;

import entity.User;

import java.util.ArrayList;

/**
 * @Author: Tiangle
 * @Date: 2021/9/11 15:44
 */
public interface UserDao {
    public boolean login(String name, String pwd);
    public ArrayList<User> getUsers();
    public User getUser(int id);
    public User getUser(String name);
    public boolean addUser(User user);
    public boolean editUser(User user);
    public ArrayList<User> getTopUps();
    public boolean topUp(User user);
    public boolean deleteTop(User user);
    public User getTop(String name);
    public int getId();

}
